/*
 * Created on 7/Abr/2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package org.cyborgas.xmltool.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;

/**
 * @author rino
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class ExitAction extends Action {
	private ApplicationWindow window;
	
	public ExitAction(ApplicationWindow window) {
		this.window = window;
		setText("E&xit");
		setAccelerator(SWT.MOD1 | 'Q');
	}

	public void run() {
		window.close();
	}
}

